package edu.ustb.mis.dm.model;

import edu.ustb.mis.excel.annotation.Excel;

public class AccuracyModel {
	@Excel(exportName = "类别数")
	private Integer types;


	@Excel(exportName = "正确数")
	private Integer correctNum;

	@Excel(exportName = "总数")
	private Integer allNum;

	@Excel(exportName = "正确率")
	private Double accuracy;
	
	public AccuracyModel(){}

	public AccuracyModel(final Integer correctNum, final Integer allNum,final Integer types) {
		this.correctNum = correctNum;
		this.allNum = allNum;
		this.types = types;
		this.accuracy = (correctNum * 1.0 / allNum);
	}
	
	public Integer getTypes() {
		return types;
	}

	public void setTypes(Integer types) {
		this.types = types;
	}

	public Integer getCorrectNum() {
		return correctNum;
	}

	public void setCorrectNum(Integer correctNum) {
		this.correctNum = correctNum;
	}

	public Integer getAllNum() {
		return allNum;
	}

	public void setAllNum(Integer allNum) {
		this.allNum = allNum;
	}

	public Double getAccuracy() {
		return accuracy;
	}

	public void setAccuracy(Double accuracy) {
		this.accuracy = accuracy;
	}
	


}
